﻿using EfInfra;
using Microsoft.Extensions.DependencyInjection;

namespace EfClient.Query
{
    internal class Simple
    {
        public static void Run()
        {
            var db = DI.InsProvider.GetService<MyContext>();
            {
                var ret = db!.Author.ToList();
                Console.WriteLine(ret?.FirstOrDefault()?.Id);
            }
        }
    }
}